package com.zhou.framework.quartz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhou.framework.quartz.dao.QuartzLog;
import com.zhou.framework.quartz.dto.JobPageDto;
import com.zhou.framework.quartz.dto.QuartzQueryDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface QuartzMapper extends BaseMapper<QuartzLog> {
    List<JobPageDto> listJob(@Param("dto") QuartzQueryDto dto);
    List<Map<String,Object>> getLogPageList(String name);
    int createQuartzLog(@Param("log") QuartzLog log);
    int updateQuartzLog(@Param("log") QuartzLog log);
    int updateQuartzLogError();
    int resetTriggerStatus(@Param("tablePrefix") String prefix);
}
